<template>
  <el-dialog
    class="cardDialog"
    :visible.sync="testMode"
    :show-close="false"
    width="455px"
    top="30vh"
  >
    <!-- <div class="addTitle">
      <span>title</span>
    </div> -->
    <div class="tip">当前模块不支持test模式</div>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="handleClose">我知道了</el-button>
    </div>
  </el-dialog>
</template>
<script>
import { mapState, mapMutations } from "vuex";

export default {
  data() {
    return {
      search: "",
    };
  },
  computed: {
    ...mapState(["testMode","testLine"]),
    testMode: {
      get() {
        return this.$store.state.testMode;
      },
      set(val) {
        //console.log(val);
        this.$store.state.testMode = val;
        this.$store.state.testLine = val;
      },
    },
  },
  methods: {
    ...mapMutations(["changeTestMode", "changeTestLine"]),
    handleClose() {
      this.$store.commit("changeTestMode", false); //关闭弹窗
      this.$store.commit("changeTestLine", false);
    },
  },
};
</script>

<style lang="scss" scoped>
.header {
  display: flex;
  .tit {
    width: 180px;
    font-size: 60px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #03bfc6;
    margin-top: 25px;
    margin-left: 10px;
  }
}
.search {
  margin: 35px 12px 0 12px;
  .tit {
    font-size: 12px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #7a8287;
    margin-bottom: 8px;
  }
  :deep(.el-input__inner) {
    border: 1px solid #03bfc6;
    border-radius: 0;
  }
  :deep(.el-input__suffix) {
    width: 30px;
    height: 32px;
    background: #03bfc6;
    right: 0;
    color: #fff;
  }
}
.tellist {
  margin: 35px 12px 0 12px;
  .tit {
    font-size: 12px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #7a8287;
    margin-bottom: 8px;
  }
  .list {
    .item {
      width: 100%;
      border-radius: 6px;
      border: 1px solid #bbf1fe;
      padding: 12px 18px;
      background: #ffffff;
      display: flex;
      justify-content: space-between;
      margin-bottom: 12px;
      .left {
        display: flex;
        justify-content: center;
        align-items: center;
        .img {
          width: 39px;
          height: 39px;
          background: #ff8b4e;
          border-radius: 14px;
          margin-right: 15px;
          text-align: center;
          line-height: 43px;
        }
        .t {
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #666666;
        }
      }
      .right {
        font-size: 14px;
        font-family: GothamSSm-Medium, GothamSSm;
        font-weight: 500;
        color: #03bfc6;
        display: flex;
        align-items: center;
      }
    }
  }
}
.del-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  // margin: 0 auto;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.customD {
  :deep(.el-dialog) {
    background: transparent;
    box-shadow: none;
  }
  :deep(.el-dialog__header) {
    padding: 0;
  }
  :deep(.el-dialog__body) {
    padding: 20px 33px;
    padding-bottom: 48px;
    background: linear-gradient(342deg, #ffffff 0%, #f5ffff 69%, #d8f7ff 100%);
    border-radius: 28px;
    margin-bottom: 35px;
  }
}

.cardDialog {
  .addTitle {
    font-size: 20px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.85);
  }
  .tip {
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.65);
    margin-top: 12px;
    margin-bottom: 30px;
    span {
      color: #03bfc6;
    }
  }
  :deep(.el-dialog) {
    border-radius: 16px;
  }
  :deep(.el-dialog__body) {
    padding: 10px 40px;
    padding-bottom: 60px;
  }
  :deep(.el-button--small) {
    width: 74px;
  }
  :deep(.el-input__inner) {
    padding-left: 40px;
  }
  :deep(.el-form-item__content) {
    position: relative;
  }
  .form-img {
    width: 22px;
    border-radius: 22px;
    position: absolute;
    top: 5px;
    left: 10px;
    z-index: 1;
  }
}
</style>
